package com.ynet.hmds28.service.config;

import java.util.concurrent.Semaphore;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class SemaphoreConfig {
	
    @Value("${QPSnum}")
    public int QPSnum;

    @Bean
    public Semaphore getSemaphore() {
    	Semaphore semaphore = new Semaphore(QPSnum);
        
        return semaphore;
    }
}
